﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp1
{
    class Yuan
    {
        public int a;
        public int b;

        public int A { get => a; set => a = value; }
        public int B { get => b; set => b = value; }

        public Yuan(int a)
        {
            this.b = a;
        }
        public virtual void GetArea()
        {

        }
        class Yuanxing : Yuan
        {
            public Yuanxing(int a) : base(a)
            {

            }
            public override void GetArea()
            {
                Console.WriteLine(a * a * 3.14);
            }
        }
        class Zheng : Yuan
        {
            public Zheng(int a) : base(a)
            {
                this.b = a;
            }
            public override void GetArea()
            {
                Console.WriteLine(a * a);
            }
        }
        class Clculate
        {
            public static void Clculatetest(Yuan Yuan)
            {

                Yuan.GetArea();
            }
        }
    }
}
